<template>
  <div>
    <input v-model="hobby" type="checkbox" value="科幻" />科幻
    <input v-model="hobby" type="checkbox" value="喜剧" />喜剧
    <input v-model="hobby" type="checkbox" value="动漫" />动漫
    <input v-model="hobby" type="checkbox" value="冒险" />冒险
    <input v-model="hobby" type="checkbox" value="科技" />科技
    <input v-model="hobby" type="checkbox" value="军事" />军事
    <input v-model="hobby" type="checkbox" value="娱乐" />娱乐
    <input v-model="hobby" type="checkbox" value="奇闻" />奇闻
    <br />
    <textarea v-model="intro" cols="30" rows="10"></textarea>
    <button @click="login">提交</button>
  </div>
</template>

<script>
export default {
  data() {
    return {
      arr: ["科幻", "喜剧", "动漫", "冒险", "科技", "军事", "娱乐", "奇闻"],
      intro: "",
      hobby: [],
    };
  },
  methods: {
    login() {
      this.intro = this.hobby;
    },
  },
};
</script>

<style scoped lang="less">
</style>